//只给出类
public class Rect {
	private int a;					//定义长
	private int b;					//定义宽
	
	public int getA() {
		return a;
	}
	public void setA(int a) {
		this.a = a;
	}
	
	public int getB() {
		return b;
	}
	public void setB(int b) {
		this.b = b;
	}
	
	public void show() {
		int l=2*a+2*b;
		System.out.println(l);
	}
}
